/**
 * 菜单模块
 * @type {{}}
 */
const {url} = require('../config')
module.exports = {
    "button": [
        {
            "type": "click",
            "name": "新手指南",
            "key": "CLICK" //key值对应事件
        },
        {
            "name": "菜单",
            "sub_button": [
                {
                    "type": "view",
                    "name": "百度一下",
                    "url": "http://www.baidu.com/"
                },
                {
                    "type": "view",
                    "name": "录音识别",
                    "url": `${url}/search`
                },
                {
                    "type": "view",
                    "name": "C1学车宝典",
                    "url": `https://c1.qlfpro.cn`
                },
                {
                    "type": "scancode_waitmsg",
                    "name": "扫码带提示",
                    "key": "rselfmenu_0_0",
                    "sub_button": []
                },
                {
                    "type": "scancode_push",
                    "name": "扫码推事件",
                    "key": "rselfmenu_0_1",
                    "sub_button": []
                }/*, {
                    "type": "media_id",
                    "name": "点击按钮发送图片",
                    "media_id": ""
                },
                {
                    "type": "view_limited",
                    "name": "图文消息",
                    "media_id": ""
                }*/]
        },
        {
            "name": "发图",
            "sub_button": [
                {
                    "type": "pic_sysphoto",
                    "name": "系统拍照发图",
                    "key": "系统拍照发图",
                    "sub_button": []
                },
                {
                    "type": "pic_photo_or_album",
                    "name": "拍照或者相册发图",
                    "key": "拍照或者相册发图",
                    "sub_button": []
                },
                {
                    "type": "pic_weixin",
                    "name": "微信相册发图",
                    "key": "微信相册发图",
                    "sub_button": []
                }, {
                    "name": "发送位置",
                    "type": "location_select",
                    "key": "发送位置"
                }
            ]
        }
    ]
}